package com.neusoft.nep.entity;

import java.io.Serializable;

public class Gridder implements Serializable {
    private static int count = 1;

    private int id = 0;
    private String username;
    private String password;
    private String phone;
    private String province;
    private String city;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Gridder(String password, String username, String phone, String province, String city) {
        this.password = password;
        this.username = username;
        this.phone = phone;
        this.province = province;
        this.city = city;
        this.id = count++;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdAsString() {
        return String.valueOf(id);
    }
}